package com.htl.数组;

/**
 *  二维数组的遍历
 */
public class Test {
    public static void main(String[] args) {
        int[][] array = {{1},{2,3},{4,5,6}};
        for (int i = 0; i < array.length; i++) {
            int[] ints = array[i];
            System.out.println("开始遍历第" + (i + 1) + "个内层数组：");
            for (int j = 0; j < ints.length; j++) {
                System.out.println(ints[j]);
            }
        }
    }
}
